﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@include file="/framework/purehead.jsp"%>
<%
//排序页面
String g_OrderByPage = "";

String findKeyWord = (String) context.getValue("FindKeyWord");
if (findKeyWord == null) findKeyWord = "";
boolean bNeedListType = true;
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>车辆物资采购网 - www.apep.com.cn</title>
<link href="<%=Config.getWebPath()%>/front/net/css/q-apep.css" rel="stylesheet" type="text/css">
<script language=javascript src="<%=Config.getFrameworkPath()%>/js/func.js"></script>
<script language=javascript src="<%=Config.getWebPath()%>/front/net/js/biz.js"></script>
<script language="javascript">


function clearFindKeyWordDefaultValue()
{
	if (GetValue("s_FindKeyWord") == "输入产品名称、规格或其他关键字")
	{
		SetValue("s_FindKeyWord","");
	}
}

function toLogin()
{
    frm.action_code.value = "toFrontLogin";
	frm.submit();
}
function findProduct()
{
	
	doClearEvent();
	clearFindKeyWordDefaultValue();
	if (document.all("s_KeyWord") != null)
		SetValue("s_KeyWord","");
	if (document.all("s_CatalogCode") != null)	
		SetValue("s_CatalogCode","0");
	if (document.all("s_PageNum") != null)		
		SetValue("s_PageNum",1);
	if (document.all("s_Catalog1") != null)		
		SetValue("s_Catalog1","");
	if (document.all("s_Catalog2") != null)		
		SetValue("s_Catalog2","");
	if (document.all("s_Catalog3") != null)		
		SetValue("s_Catalog3","");
	
	//SetAction("searchProduct");
	frm.action_code.value = "searchProduct";
	frm.submit();
}

//查看购物车
function viewShoppingCar()
{
	window.open("<%=Config.getSrv()%>?action_code=viewShoppingCar","_blank","height=368,width=620,left=250,top=120,menubar=no,scrollbars=yes");
}

//未登录用户察看购物车
function frontRegToShoppingBag()
{
	frm.action_code.value="frontRegToShoppingBag";
	frm.submit();
}

function onKeyWord()
{
	if(GetValue("s_FindKeyWord")=="输入产品名称、规格或其他关键字")
	{
		SetValue("s_FindKeyWord","");
		//document.all("s_FindKeyWord").className ="inputborder_blue";	
	}

}
function bizLogout(isFront)
{
	if(!confirm("您确定要退出吗？")) return false;
	frm.action_code.value = "logout";
	frm.target = "_self";
	frm.submit();
}
key_RegSubmitHandler(findProduct);
</script>
</head>

<body leftmargin="0" topmargin="0">
<form name="frm" action="<%=Config.getSrv()%>" method="post" onsubmit="return false;">
<input type=hidden name="action_code">
<input type=hidden name="isFront" value="true">

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="204F7D" class="dicolor">
  <tr>
    <td valign="top"><table width="778" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top">
            <table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="132" valign="bottom"><table id="__01" width="778" height="132" border="0" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td rowspan="3"> <img src="<%=Config.getWebPath()%>/front/net/images/3_01.jpg" width="204" height="132" alt=""></td>
                      <td colspan="2"> <img src="<%=Config.getWebPath()%>/front/net/images/3_02.jpg" width="574" height="12" alt=""></td>
                    </tr>
                    <tr> 
                      <td width="536" height="112"> <img src="<%=Config.getWebPath()%>/front/net/images/3_03.jpg" width="563" height="112" alt=""></td>
                      <td rowspan="2"> <img src="<%=Config.getWebPath()%>/front/net/images/3_04.jpg" width="11" height="120" alt=""></td>
                    </tr>
                    <tr> 
                      <td> <img src="<%=Config.getWebPath()%>/front/net/images/3_05.jpg" width="563" height="8" alt=""></td>
                    </tr>
             </table>
           </td>
        </tr>
        <tr> 
           <td>
           
           <table id="__01" width="778" height="35" border="0" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td width="397" height="35" background="<%=Config.getWebPath()%>/front/net/images/fre2_01.jpg"><table width="397" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td width="19%" height="30" align="right" class="white-c">寻找产品:</td>
                            <td width="49%" height="30"><input name="s_FindKeyWord" type="text" class="inputborder_blue" onFocus="this.select()" onBlur="if (value ==''){value='输入产品名称、规格或其他关键字'}" onClick="onKeyWord();"  onMouseOver="this.focus()" value="<%=(findKeyWord.equals(""))?"输入产品名称、规格或其他关键字":findKeyWord%>" size="30"  style="BACKGROUND-COLOR: D5F1FE; BORDER-BOTTOM: 0F1F98 1px solid; BORDER-LEFT: 0F1F98 1px solid; BORDER-RIGHT: 0F1F98 1px solid; BORDER-TOP: 0F1F98 1px solid; COLOR: #000000; FONT-SIZE: 12px"></td>
                            <td width="11%" height="30"><input name="Submit3" type="button" class="button" value="提交" onClick="findProduct();return false;"></td>
                            <td width="21%" height="30"><a href="<%=Config.getWebPath()%>/front/net/productSearch.jsp" class="link15">高级搜索</a></td>
                          </tr>
                        </table></td>
                      <td> <a href="/index.jsp"><img src="<%=Config.getWebPath()%>/front/net/images/fre2_02.jpg" alt="" width="36" height="35" border="0"></a></td>
                  <% if(loginInfo.isLogin()){ %> 
                  		<td><a href="" onClick="bizLogout();return false;"><img src="<%=Config.getWebPath()%>/front/net/images/fre2_03chu.jpg" alt="" width="36" height="35" border="0"></a></td>
                  <% }else{ %>   
                      <td><a href="" onClick="toLogin();return false;"><img src="<%=Config.getWebPath()%>/front/net/images/fre2_03.jpg" alt="" width="36" height="35" border="0"></a></td>
			            <% } %>          
                  <% if(loginInfo.isLogin()){ %>    
                      <td> <a href="" onClick="viewShoppingCar(); return false;"><img src="<%=Config.getWebPath()%>/front/net/images/fre2_04.jpg" alt="" width="69" height="35" border="0"></a></td>
                  <% }else{ %>
                  	  <td> <a href="" onClick="frontRegToShoppingBag(); return false;"><img src="<%=Config.getWebPath()%>/front/net/images/fre2_04.jpg" alt="" width="69" height="35" border="0"></a></td>	
                  <% } %>    
                      <td> <a href="" onclick="bizRedirectToManagerPage();return false;"><img src="<%=Config.getWebPath()%>/front/net/images/fre2_05.jpg" alt="" width="84" height="35" border="0"></a></td>
                      <td> <a href="<%=Config.getWebPath()%>/front/net/leaveWord.jsp"><img src="<%=Config.getWebPath()%>/front/net/images/fre2_06.jpg" alt="" width="50" height="35" border="0"></a></td>
                      <td> <a href="<%=Config.getWebPath()%>/front/net/helpIndex.jsp" ><img src="<%=Config.getWebPath()%>/front/net/images/fre2_07.jpg" alt="" width="106" height="35" border="0"></a></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td height="100%" valign="top"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td valign="top" bgcolor="#FFFFFF">